import time

def get_touzhi_info(mongo_instance, soup, cid, company):
    print('start 投资事件数据*******')
    for tr in soup.find('div', id='_container_touzi').find('tbody').find_all('tr') if soup.find('div',
                                                                                                id='_container_touzi') else []:
        item = {}
        tds = tr.find_all('td')
        if len(tds) > 5:
            td5s = tds[5].find('tbody').find_all('td')
            product = td5s[1].text
            item['date'] = tds[1].text
            item['lunci'] = tds[2].text
            item['money'] = tds[3].text
            item['tzcompany'] = tds[4].text
            item['tzproduct'] = product
            item['area'] = tds[8].text
            item['hangye'] = tds[9].text
            item['yewu'] = tds[10].text
            item['create_at'] = int(time.time())
            item['update_at'] = item['create_at']
            item['company'] = company
            item['company_id'] = cid
            print(item)
            mongo_instance.touzhi.update({'company_id': cid}, item, True)
    print('sucess 投资事件*******')